home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14492 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  927 b 

  1. Path: mail2news.demon.co.uk!escan.demon.co.uk
  2. From: Bill Birrell <bill@escan.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Check if a file exists?
  5. Date: Mon, 15 Apr 1996 12:57:00
  6. Message-ID: <829565947.AA00181@escan.demon.co.uk>
  7. Reply-To: bill@escan.demon.co.uk
  8. X-NNTP-Posting-Host: escan.demon.co.uk
  9. X-Mail2News-Path: escan.demon.co.uk
  10.  
  11.  > That would be implemented in Unix using stat(),
  12.  > however that isn't a standard
  13.  > C library function.
  14.  
  15.     That's odd, Lawrence. K&R Edn 1, Ch 8, P 170 says it is, as part of the
  16. unix system interface, and refers to sys/stat.h for the definition of the stat
  17. structure.
  18. Compatibility is listed as:-
  19.  
  20.     unix,
  21.     16 bit: dos, qwin,win, win dll
  22.     32 bit: Dos32X
  23.  
  24.     Note:
  25.     use _stat for compatibility with ANSI naming conventions of non-ANSI
  26. functions. Use stat and link with OLDNAMES.LIB for UNIX compatibility.
  27.  
  28. --
  29. Regards,
  30. Bill Birrell.
  31. internet:       bill@escan.demon.co.uk
  32.